package io.github.talelin.latticy.model;

import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

import java.io.Serializable;

/**
* @author vvboy
*/
@Data
@TableName("t_maintenance")
@EqualsAndHashCode(callSuper = true)
public class MaintenanceDO extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 受理表ID
    */
    @TableField("`accept_id`")
    private Integer acceptId;

    /**
    * 受理序号
    */
    @TableField("`order_number`")
    private String orderNumber;

    /**
     * 工单序号
     */
    @TableField("`work_number`")
    private String workNumber;



    /**
    * 受理时间
    */
    @TableField("`order_time`")
    private Date orderTime;

    @TableField(exist = false)
    private String orderTimeString;

    /**
    * 用户名
    */
    @TableField("`username`")
    private String username;

    /**
    * 联系电话
    */
    @TableField("`phone`")
    private String phone;

    /**
    * 终端类型
    */
    @TableField("`type`")
    private String type;

    /**
    * 型号颜色
    */
    @TableField("`model`")
    private String model;

    /**
    * 维修性质
    */
    @TableField("`nature`")
    private String nature;

    /**
    * 本机号码
    */
    @TableField("`local_number`")
    private String localNumber;

    /**
    * 机身号码
    */
    @TableField("`serial_no`")
    private String serialNo;

    /**
    * 附件
    */
    @TableField("`file`")
    private String file;

    /**
    * 修理内容
    */
    @TableField("`content`")
    private String content;

    /**
    * 更换配件
    */
    @TableField("`re_accessories`")
    private String reAccessories;

    /**
    * 配件费
    */
    @TableField("`accessory_amount`")
    private BigDecimal accessoryAmount;

    /**
    * 工时费
    */
    @TableField("`work_amount`")
    private BigDecimal workAmount;

    /**
    * 合计
    */
    @TableField("`total_amount`")
    private BigDecimal totalAmount;

    /**
    * 所修项目保用期
    */
    @TableField("`shelf_start`")
    private Date shelfStart;

    @TableField(exist = false)
    private String shelfStartString;

    @TableField("`shelf_end`")
    private Date shelfEnd;

    @TableField(exist = false)
    private String shelfEndString;


}
